<?php
    if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === TRUE) {
        echo "<h2>Welcome, {$_SESSION['username']}</h2>";
		include_once 'logout.php';
		echo "<br/><a href='./index.php?action=yourstore'>Τα προϊόντα μου</a>";
    }
    else {
        include 'login.php';
        echo "<a href='./index.php?action=sighnup'>Εγγραφή</a>";
    }
?>
